-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix test-debugger-pid #6584
Conversation
The test in question failed during the CI run. |
It looks like the output in
Does anyone know if it has been always like this? |
@santigimeno Grep for the Windows version of DebugProcess() in src/node.cc. That error you're seeing is the 'uncaughtException' event handler in lib/_debugger.js. I speculate this code fails with the error message from OpenProcess() call in DebugProcess() instead of the expected ESRCH exception, and that ends up triggering the handler. |
d4b7364
to
67c75b5
Compare
@bnoordhuis yes, thanks for looking into it. I can confirm your speculation and the error reported in
I have updated the PR so it handles the Windows case accordingly. CI run: https://ci.nodejs.org/job/node-test-commit/3248/. Apart from the usual suspects the run looks good. |
I think I'd rather just skip the test on Windows instead of checking for that 'There was an internal error' message. |
I'm also checking for the |
Some test coverage is better than no coverage, I suppose. I'll leave it up to you, LGTM either way. |
/cc @nodejs/testing what do you think? It's fine by me either way |
LGTM the way it is. Fine skipping on Windows too. Slight preference for leaving it the way it is so that if the behavior ever becomes consistent, we find out rather than forever skipping the test. |
The current format that prints the process PID before the actual message. Adapt the test so it also passes on Windows, that emits a different message from the rest of platforms. Move the test to parallel. PR-URL: nodejs#6584 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
One last CI run: https://ci.nodejs.org/job/node-test-pull-request/2573/ and it's green. |
Finally I left the |
Looks like this was landed in 588cfc5 |
The current format that prints the process PID before the actual message. Adapt the test so it also passes on Windows, that emits a different message from the rest of platforms. Move the test to parallel. PR-URL: #6584 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@Trott lts? |
@thealphanerd I think perhaps you meant to ping @santigimeno rather than me? |
@thealphanerd No, it should not be backported. It works as expected in 4.x. |
Checklist
Affected core subsystem(s)
test
Description of change
And move it to parallel.